import request from "@/utils/request";

// 查询设备信息列表
export function listBizEquInfo(query) {
  return request({
    url: "/biz/bizEquInfo/list",
    method: "get",
    params: query
  });
}

// 查询设备信息详细
export function getBizEquInfo(id) {
  return request({
    url: "/biz/bizEquInfo/" + id,
    method: "get"
  });
}

// 新增设备信息
export function addBizEquInfo(data) {
  return request({
    url: "/biz/bizEquInfo",
    method: "post",
    data: data
  });
}

// 修改设备信息
export function updateBizEquInfo(data) {
  return request({
    url: "/biz/bizEquInfo",
    method: "put",
    data: data
  });
}

// 删除设备信息
export function delBizEquInfo(id) {
  return request({
    url: "/biz/bizEquInfo/" + id,
    method: "delete"
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizEquInfo/findMaxSort",
    method: "get"
  });
}
// 导出设备信息
export function exportBizEquInfo(query) {
  return request({
    url: "/biz/bizEquInfo/export",
    method: "get",
    params: query
  });
}
// 经纬度换成地址
export function getlocationBylatlng(query) {
  return request({
    url: "/biz/bizEquInfo/getlocationBylatlng",
    method: "get",
    params: query
  });
}
